# encoding: UTF-8
 
class Admin::FaqsController < ApplicationController
  
  before_filter :user_signed_in?

  def edit
    @faq = Faq.find(params[:id]) 
    set_seo_meta '常见问题'
  end

  def update
    @faq = Faq.find(params[:id])
    if @faq.update_attributes!(params[:session])
      redirect_to edit_faq_path(1), notice:'修改成功'
    else
      redirect_referrer_or_defautl default
    end
  end
  
end
